package com.tubi.arrayFunction;

public class Demo1ArrayFun {
    /*
    *遍历数组
    * 获取数组个数 元素名.length
    * */

    public static void main(String[] args) {
        //静态数组
        int[] arr = {1,2,3,4,5};
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }
    }
}
